<template>
 <div>

 </div>
</template>

<script>
 export default {
   data () {
     return {
        result:""
     }
   },
   created () {

   },
   methods:{
       toThousandsNoZero(num) {    
        return num ? ( (isNaN(parseFloat(num.toString().replace(/,/g, ""))) ? 1 : parseFloat(num.toString().replace(/,/g, "")))).toFixed(2).toString().replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
            return $1 + ",";
        }) : "";
    },
    projectAmounts(){//this.form.projectAmount 金额
    if(isNaN(parseFloat(this.result))){
        this.result= 0.00;
    }else{
        this.result=this.toThousandsNoZero(this.fresult);
    }
    },

   },
   computed: {

   },
   components: {

   }
 }
</script>

<style lang='less' scoped >

 
</style>
